<?php

$pager = new Defined_PageBreak();
$paging = $pager->wp_page_numbers_post($this->pageCount, $this->current);
echo $paging;
?>

<?php
/*
echo '<br />pageCount: ' . $this->pageCount;
echo '<br />pageCurrent: ' . $this->current;
echo '<br />next: ' . $this->next;
*/
?>


<?php /*
<?php  if ($this->pageCount>1): ?>

<div class="linkPage clearfix">   
        
    <ul class="clearfix">
        <?php if($this->current > 1) : ?>
            <li >
                <a href="javascript:void(0);" onclick="form_change(<?php echo $this->current - 1 ?>);">
    				Back
                </a>
            </li>  
        <?php endif; ?>
        <li >
            <a href="javascript:void(0);" onclick="form_change(1);"> 1 </a>
        </li>
        <?php /* 
        <!-- Begin numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
        
            <?php if ($page != $this->current): ?>
            	<li >
	                <a href="javascript:void(0);" onclick="form_change(<?php echo $page?>);">
						<?php echo $page?>
                    </a>
                </li>    
            <?php else: ?>
            	<li><a class="active"><?php echo $page; ?></a></li>
            <?php endif; ?>
        <?php endforeach; ?>
       <!-- End numbered page links -->
       
        ?>
        <li >
            <a href="javascript:void(0);" onclick="form_change(<?php echo $this->pageCount; ?>);">
				<?php echo $this->pageCount ?>
            </a>
        </li>
        <?php if($this->current < $this->pageCount) : ?>
            <li >
                <a href="javascript:void(0);" onclick="form_change(<?php echo $this->next ?>);">
    				Next
                </a>
            </li>  
        <?php endif; ?>
    </ul>
        
</div>  
<?php endif; ?>

<?php
echo '<br />pageCount: ' . $this->pageCount;
echo '<br />pageCurrent: ' . $this->current;
echo '<br />next: ' . $this->next;
?>



<?php
/*


<?php  if ($this->pageCount>1): ?>

<div class="linkPage clearfix">
<p class="page">Trang:</p>    
        
    <ul class="clearfix">
        <!-- Begin numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
            	<li >
	                <a href="javascript:void(0);" onclick="form_change(<?php echo $page?>);">
						<?php echo $page?>
                    </a>
                </li>    
            <?php else: ?>
            	<li><a class="active"><?php echo $page; ?></a></li>
            <?php endif; ?>
        <?php endforeach; ?>
       <!-- End numbered page links -->
        
    </ul>
    
    <!-- Begin next page link -->
      	<?php if (isset($this->next)): ?>
			<p class="nextpage">
            	<a title="Next" href="javascript:void(0);" onclick="form_change(<?php echo $this->next?>);">
                	Next &raquo;
                </a>
            </p>
        <?php else: ?>
            <p class="nextpage">Next</p>
        <?php endif; ?>    
	<!-- End next page link -->
        
</div>  
<?php endif; ?>

<?php
echo '<br />pageCount: ' . $this->pageCount;
echo '<br />pageCurrent: ' . $this->current;
echo '<br />next: ' . $this->next;
?>

*/
?>